/**
 * 金币脚本
 */

cc.Class({
    extends: cc.Component,

    properties: {
        audio: {
            default: null,
            type: cc.AudioClip
        }
    },

    onCollisionEnter: function (other, self) {
        cc.audioEngine.playEffect(this.audio, false);
        this.node.destroy();
    },
});
